

public class Mouse extends Item{


	private String type;
	private int buttonNum;
	private String colour;


	public Mouse (String id, String iPrice, String quantity, String itemType, int btnNum, String colour ){

		super( id, iPrice, quantity);
		setType(itemType);
		setButtonNum(btnNum);
		this.setColour(colour);
	}


	public String getType() {
		return type;
	}


	public void setType(String type) {
		this.type = type;
	}


	public int getButtonNum() {
		return buttonNum;
	}


	public void setButtonNum(int buttonNum) {
		this.buttonNum = buttonNum;
	}


	public String getColour() {
		return colour;
	}


	public void setColour(String colour) {
		this.colour = colour;
	}


	@Override
	public String toString() {
		return "Mouse [type=" + type + ", buttonNum=" + buttonNum + ", colour="
				+ colour+","  + super.toString() + "]";
	}


	public boolean equals(Object other){

		if (! (other instanceof Mouse))
			return false;

		Mouse ms = (Mouse) other;
		return this.getItemID() == ms.getItemID();
	}

	public int compareTo(Mouse ms) {
		return itemID.compareTo(ms.getItemID());

	}



}